package com.henu.acmrating;

import org.jasypt.util.text.BasicTextEncryptor;

/**
 * @Author XiaolongLi
 * @Description TODO
 * @Date 2020/12/16 16:34
 */
public class encrytion {


    public static void main(String[] args) {
        BasicTextEncryptor textEncryptor = new BasicTextEncryptor();
        //加密所需的salt(盐)

        textEncryptor.setPassword("");
        //要加密的数据（数据库的用户名或密码）
        String password1 = textEncryptor.encrypt("");
        //解密：
        //textEncryptor.decrypt("");

        System.out.println("password:"+password1);

    }
}
